<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.Window类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_window.html">Window</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="classawtk_1_1_window-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.Window类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.Window 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_window.png" usemap="#awtk.Window_map" alt=""/>
  <map id="awtk.Window_map" name="awtk.Window_map">
<area href="classawtk_1_1_window_base.html" alt="awtk.WindowBase" shape="rect" coords="0,56,113,80"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a08d8b0a70c786fdbdd0f8e27e296498a"><td class="memItemLeft" align="right" valign="top"><a id="a08d8b0a70c786fdbdd0f8e27e296498a"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Window</b> (long nativeObj)</td></tr>
<tr class="separator:a08d8b0a70c786fdbdd0f8e27e296498a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18b9992b6ae9dc055b9df447b07e5681"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_window.html#a18b9992b6ae9dc055b9df447b07e5681">setFullscreen</a> (boolean fullscreen)</td></tr>
<tr class="separator:a18b9992b6ae9dc055b9df447b07e5681"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1495f77c706376e9517b7f9271de56d2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_window.html#a1495f77c706376e9517b7f9271de56d2">close</a> ()</td></tr>
<tr class="separator:a1495f77c706376e9517b7f9271de56d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53d89bdeec86ce9f99ca3ac3578b35e5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_window.html#a53d89bdeec86ce9f99ca3ac3578b35e5">closeForce</a> ()</td></tr>
<tr class="separator:a53d89bdeec86ce9f99ca3ac3578b35e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a559524f9821b41bb5453ee0d49c45a84"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_window.html#a559524f9821b41bb5453ee0d49c45a84">getFullscreen</a> ()</td></tr>
<tr class="separator:a559524f9821b41bb5453ee0d49c45a84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classawtk_1_1_window_base"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classawtk_1_1_window_base')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classawtk_1_1_window_base.html">awtk.WindowBase</a></td></tr>
<tr class="memitem:a07ecd7b8ff831b14e0945d0754ec2d5f inherit pub_methods_classawtk_1_1_window_base"><td class="memItemLeft" align="right" valign="top"><a id="a07ecd7b8ff831b14e0945d0754ec2d5f"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>WindowBase</b> (long nativeObj)</td></tr>
<tr class="separator:a07ecd7b8ff831b14e0945d0754ec2d5f inherit pub_methods_classawtk_1_1_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18e9d39f0297072196cce80fdf08a7ee inherit pub_methods_classawtk_1_1_window_base"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_window_base.html#a18e9d39f0297072196cce80fdf08a7ee">getTheme</a> ()</td></tr>
<tr class="separator:a18e9d39f0297072196cce80fdf08a7ee inherit pub_methods_classawtk_1_1_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa8065caa6c8c87501e42f0aa2888f9a9 inherit pub_methods_classawtk_1_1_window_base"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_window_closable.html">WindowClosable</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_window_base.html#aa8065caa6c8c87501e42f0aa2888f9a9">getClosable</a> ()</td></tr>
<tr class="separator:aa8065caa6c8c87501e42f0aa2888f9a9 inherit pub_methods_classawtk_1_1_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:ae99fc0afe42df91e6f70383625772767"><td class="memItemLeft" align="right" valign="top"><a id="ae99fc0afe42df91e6f70383625772767"></a>
static <a class="el" href="classawtk_1_1_window.html">Window</a>&#160;</td><td class="memItemRight" valign="bottom"><b>cast</b> (long nativeObj)</td></tr>
<tr class="separator:ae99fc0afe42df91e6f70383625772767"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff5eab98d87ed7742d729154aabb663f"><td class="memItemLeft" align="right" valign="top">static Widget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_window.html#aff5eab98d87ed7742d729154aabb663f">create</a> (Widget parent, int x, int y, int w, int h)</td></tr>
<tr class="separator:aff5eab98d87ed7742d729154aabb663f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a348a8c69f6b51d126666a9b00f38e49c"><td class="memItemLeft" align="right" valign="top">static Widget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_window.html#a348a8c69f6b51d126666a9b00f38e49c">open</a> (String name)</td></tr>
<tr class="separator:a348a8c69f6b51d126666a9b00f38e49c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a005999810a52781d2024744adffa2cfe"><td class="memItemLeft" align="right" valign="top">static Widget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_window.html#a005999810a52781d2024744adffa2cfe">openAndClose</a> (String name, Widget to_close)</td></tr>
<tr class="separator:a005999810a52781d2024744adffa2cfe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a49e8fea62fcafd2c1a82625da6ba6e9f"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_window.html">Window</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_window.html#a49e8fea62fcafd2c1a82625da6ba6e9f">cast</a> (Widget widget)</td></tr>
<tr class="separator:a49e8fea62fcafd2c1a82625da6ba6e9f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_static_methods_classawtk_1_1_window_base"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classawtk_1_1_window_base')"><img src="closed.png" alt="-"/>&#160;静态 Public 成员函数 继承自 <a class="el" href="classawtk_1_1_window_base.html">awtk.WindowBase</a></td></tr>
<tr class="memitem:a98005abcb8a39d34b5b91c82370b7f1e inherit pub_static_methods_classawtk_1_1_window_base"><td class="memItemLeft" align="right" valign="top"><a id="a98005abcb8a39d34b5b91c82370b7f1e"></a>
static <a class="el" href="classawtk_1_1_window_base.html">WindowBase</a>&#160;</td><td class="memItemRight" valign="bottom"><b>cast</b> (long nativeObj)</td></tr>
<tr class="separator:a98005abcb8a39d34b5b91c82370b7f1e inherit pub_static_methods_classawtk_1_1_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afef293b79c0d92cdde82061ada03b06a inherit pub_static_methods_classawtk_1_1_window_base"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_window_base.html">WindowBase</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_window_base.html#afef293b79c0d92cdde82061ada03b06a">cast</a> (Widget widget)</td></tr>
<tr class="separator:afef293b79c0d92cdde82061ada03b06a inherit pub_static_methods_classawtk_1_1_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a1fc9208174dc71423572cae3bbe39800"><td class="memItemLeft" align="right" valign="top"><a id="a1fc9208174dc71423572cae3bbe39800"></a>
long&#160;</td><td class="memItemRight" valign="bottom"><b>nativeObj</b></td></tr>
<tr class="separator:a1fc9208174dc71423572cae3bbe39800"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_attribs_classawtk_1_1_window_base"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_classawtk_1_1_window_base')"><img src="closed.png" alt="-"/>&#160;Public 属性 继承自 <a class="el" href="classawtk_1_1_window_base.html">awtk.WindowBase</a></td></tr>
<tr class="memitem:a446bcc7b77e1cca7b0c2390901e0b0ac inherit pub_attribs_classawtk_1_1_window_base"><td class="memItemLeft" align="right" valign="top"><a id="a446bcc7b77e1cca7b0c2390901e0b0ac"></a>
long&#160;</td><td class="memItemRight" valign="bottom"><b>nativeObj</b></td></tr>
<tr class="separator:a446bcc7b77e1cca7b0c2390901e0b0ac inherit pub_attribs_classawtk_1_1_window_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>窗口。</p>
<p>缺省的应用程序窗口，占用除system_bar_t之外的整个区域，请不要修改它的位置和大小(除非你清楚后果)。</p>
<p>window_t是window的子类控件，window_base_t的函数均适用于window_t控件。</p>
<p>在xml中使用"window"标签创建窗口。无需指定坐标和大小，可以指定主题和动画名称。如：</p>
<div class="fragment"><div class="line">&lt;<span class="keywordtype">window</span> <span class="keyword">theme</span>=<span class="stringliteral">&quot;basic&quot;</span> <span class="keyword">anim_hint</span>=<span class="stringliteral">&quot;htranslate&quot;</span>&gt;</div><div class="line">...</div><div class="line">&lt;/<span class="keywordtype">window</span>&gt;</div></div><!-- fragment --><p>更多用法请参考：<a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/">window.xml</a></p>
<p>在c代码中使用函数window_create创建窗口。如：</p>
<p>无需指定父控件、坐标和大小，使用0即可。</p>
<p>完整示例请参考：<a href="https://github.com/zlgopen/awtk-c-demos/blob/master/demos/">window demo</a></p>
<p>可用通过style来设置窗口的风格，如背景颜色或图片等。如：</p>
<div class="fragment"><div class="line">&lt;<span class="keywordtype">style</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;bricks&quot;</span>&gt;</div><div class="line">&lt;<span class="keywordtype">normal</span> <span class="keyword">bg_image</span>=<span class="stringliteral">&quot;bricks&quot;</span>  <span class="keyword">bg_image_draw_type</span>=<span class="stringliteral">&quot;repeat&quot;</span>/&gt;</div><div class="line">&lt;/<span class="keywordtype">style</span>&gt;</div></div><!-- fragment --><p>更多用法请参考：<a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/styles/default.xml#L0">theme default</a> </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a49e8fea62fcafd2c1a82625da6ba6e9f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a49e8fea62fcafd2c1a82625da6ba6e9f">&#9670;&nbsp;</a></span>cast()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_window.html">Window</a> awtk.Window.cast </td>
          <td>(</td>
          <td class="paramtype">Widget&#160;</td>
          <td class="paramname"><em>widget</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>转换为window对象(供脚本语言使用)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">widget</td><td>window对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>window对象。 </dd></dl>

</div>
</div>
<a id="a1495f77c706376e9517b7f9271de56d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1495f77c706376e9517b7f9271de56d2">&#9670;&nbsp;</a></span>close()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Window.close </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>关闭窗口。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a53d89bdeec86ce9f99ca3ac3578b35e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a53d89bdeec86ce9f99ca3ac3578b35e5">&#9670;&nbsp;</a></span>closeForce()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Window.closeForce </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>立即无条件关闭窗口(无动画)。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aff5eab98d87ed7742d729154aabb663f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aff5eab98d87ed7742d729154aabb663f">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Widget awtk.Window.create </td>
          <td>(</td>
          <td class="paramtype">Widget&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建window对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="a559524f9821b41bb5453ee0d49c45a84"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a559524f9821b41bb5453ee0d49c45a84">&#9670;&nbsp;</a></span>getFullscreen()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.Window.getFullscreen </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>是否全屏。</p>
<p>这里全屏是指与LCD相同大小，而非让SDL窗口全屏。 </p>

</div>
</div>
<a id="a348a8c69f6b51d126666a9b00f38e49c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a348a8c69f6b51d126666a9b00f38e49c">&#9670;&nbsp;</a></span>open()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Widget awtk.Window.open </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>从资源文件中加载并创建window_base对象。本函数在ui_loader/ui_builder_default里实现。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>window的名称。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="a005999810a52781d2024744adffa2cfe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a005999810a52781d2024744adffa2cfe">&#9670;&nbsp;</a></span>openAndClose()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Widget awtk.Window.openAndClose </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Widget&#160;</td>
          <td class="paramname"><em>to_close</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>从资源文件中加载并创建window对象。本函数在ui_loader/ui_builder_default里实现。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>window的名称。 </td></tr>
    <tr><td class="paramname">to_close</td><td>关闭该窗口。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="a18b9992b6ae9dc055b9df447b07e5681"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a18b9992b6ae9dc055b9df447b07e5681">&#9670;&nbsp;</a></span>setFullscreen()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Window.setFullscreen </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>fullscreen</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置为全屏窗口。</p>
<p>这里全屏是指与LCD相同大小，而非让SDL窗口全屏。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">fullscreen</td><td>是否全屏。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/Window.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
